#include "vector.h"
#include<iostream>
int main()
{
	lowindow::vector<int> a;
	a.push_back(1);
	a.push_back(2);
	a.push_back(3);
	a.push_back(4);
	lowindow::vector<int> const c = a;
	lowindow::vector<int> d;
	lowindow::vector<int> f;
	//for (auto e : c)
	//{
	//	e = 3;
	//	std::cout << e << std::endl;
	//}
	//for (auto& e : c)
	//{
	//	//e = 3;
	//	std::cout << e << std::endl;
	//}
	//std::cout << d.empty() << std::endl;
	d = f = a;
	a.pop_back();
	lowindow::swap(a,d);
	std::cout << d.back() << std::endl;
	for (auto x = a.begin();x != a.end(); ++x)
	{
		if (*x == 2)
		{
			a.erase(x);
		}
		if (*x == 4)
		{
			a.insert(x,5);
		}
	}
	for (auto e : a)
	{
		std::cout << e << std::endl;
	}
	return 0;
}